package io.renren.utils.httpclient;


public class BizException extends RuntimeException {
	private static final long serialVersionUID = 1700727175902528001L;

	public BizException() {

	}

	public BizException(String errMsg) {
		super(errMsg);
	}

	public BizException(String message, Throwable cause,
			boolean enableSuppression, boolean writableStackTrace) {
		super(message, cause, enableSuppression, writableStackTrace);
	}

	public BizException(String message, Throwable cause) {
		super(message, cause);
	}

	public BizException(Throwable cause) {
		super(cause);
	}
	
	@Override
	public String getMessage() {
		if (StringUtils.isNotEmpty(super.getMessage())) {
			return super.getMessage();
		}else {
			return super.getLocalizedMessage();
		}
	}

}
